package com.javasm.mb_store_api_final.giftsandgoods.gift.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.javasm.mb_store_api_final.giftsandgoods.gift.entity.GmGift2Goods;
import com.javasm.mb_store_api_final.giftsandgoods.gift.vo.Gifts2GoodsVo;
import com.javasm.mb_store_api_final.giftsandgoods.goods.entity.GgGoods;

import java.util.List;

/**
 * 赠品管理-赠品转商品(GmGift2Goods)表服务接口
 *
 * @author makejava
 * @since 2024-08-01 11:25:47
 */
public interface GmGift2GoodsService extends IService<GmGift2Goods> {

    List<Gifts2GoodsVo> listGifts2GoodsVo(Gifts2GoodsVo g2gVo);

    long getTatol();

    List<String> listgtype();

    GmGift2Goods selectById(Integer id);

    boolean updateById1(GmGift2Goods gift2Goods);

    boolean delById(Integer id);

    boolean saveGift2Goods(GmGift2Goods g2g);


    GgGoods getDetailById(Integer id);

    boolean updateGiftNum(Integer id, Integer count);
}

